home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / EDITFILE.RC < prev    next >
Text File  |  1997-05-06  |  2KB  |  76 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1992, 1996 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.4  $
  6. //
  7. // Resources to use with TEditFile.
  8. //----------------------------------------------------------------------------
  9.  
  10. #include <owl/editfile.rh>
  11.  
  12. #if defined(RC_INVOKED)
  13.  
  14. #if !defined(NO_IDM_EDITFILE) && !defined(__IDM_EDITFILE)
  15. #define __IDM_EDITFILE
  16. IDM_EDITFILE MENU LOADONCALL MOVEABLE PURE DISCARDABLE
  17. {
  18.   POPUP "&File"
  19.   {
  20.     MenuItem  "&New",        CM_FILENEW
  21.     MenuItem  "&Open...",    CM_FILEOPEN
  22.     MenuItem  "&Save",       CM_FILESAVE
  23.     MenuItem  "Save &As...", CM_FILESAVEAS
  24.     MenuItem  SEPARATOR
  25.     MenuItem  "E&xit",       CM_EXIT
  26.   }
  27.   POPUP "&Edit"
  28.   {
  29.     MenuItem  "&Undo\aCtrl+Z",        CM_EDITUNDO
  30.     MenuItem  SEPARATOR
  31.     MenuItem  "Cu&t\aCtrl+X",         CM_EDITCUT
  32.     MenuItem  "&Copy\aCtrl+C",        CM_EDITCOPY
  33.     MenuItem  "&Paste\aCtrl+V",       CM_EDITPASTE
  34.     MenuItem  "&Delete\aDel",         CM_EDITDELETE
  35.     MenuItem  "C&lear All\aCtrl+Del", CM_EDITCLEAR
  36.   }
  37.   POPUP "&Search"
  38.   {
  39.     MenuItem  "&Find...",    CM_EDITFIND
  40.     MenuItem  "&Replace...", CM_EDITREPLACE
  41.     MenuItem  "&Next\aF3",   CM_EDITFINDNEXT
  42.   }
  43. }
  44. #endif
  45. #undef NO_IDM_EDITFILE
  46.  
  47. #if !defined(NO_IDA_EDITFILE) && !defined(__IDA_EDITFILE)
  48. #define __IDA_EDITFILE
  49. IDA_EDITFILE ACCELERATORS
  50. {
  51.   "^Z",      CM_EDITUNDO
  52.   "^X",      CM_EDITCUT
  53.   "^C",      CM_EDITCOPY
  54.   "^V",      CM_EDITPASTE
  55.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  56.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  57. }
  58. #endif
  59. #undef NO_IDA_EDITFILE
  60.  
  61. #if !defined(NO_IDS_EDITFILE) && !defined(__IDS_EDITFILE)
  62. #define __IDS_EDITFILE
  63. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  64. {
  65.   IDS_UNTITLEDFILE, "Untitled"
  66.   IDS_UNABLEREAD, "Unable to read file %s from disk."
  67.   IDS_UNABLEWRITE, "Unable to write file %s to disk."
  68.   IDS_FILECHANGED, "The text in the %s file has changed.\n\nDo you want to save the changes?"
  69.   IDS_FILEFILTER, "Text files (*.TXT)|*.TXT|All Files (*.*)|*.*|"
  70.   IDS_RICHEDITFILTER, "RTF files (*.RTF)|*.RTF|Text files (*.TXT)|*.TXT|All Files (*.*)|*.*|"
  71. }
  72. #endif
  73. #undef NO_IDS_EDITFILE
  74.  
  75. #endif  // defined(RC_INVOKED)
  76.